﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Routing;

namespace CMS
{
    public class CMSViewEngine : RazorViewEngine
    {
        public CMSViewEngine()
            : base()
        {           
            

            AreaViewLocationFormats = new[] {
                "~/Sites/{2}/Views/{1}/{0}.cshtml",                
                "~/Sites/{2}/Views/Shared/{0}.cshtml"                
            };
            AreaMasterLocationFormats = new[] {
                "~/Sites/{2}/Views/{1}/{0}.cshtml",                
                "~/Sites/{2}/Views/Shared/{0}.cshtml"                
            };
            AreaPartialViewLocationFormats = new[] {
                "~/Sites/{2}/Views/{1}/{0}.cshtml",                
                "~/Sites/{2}/Views/Shared/{0}.cshtml"                
            };             
        }
    }
}
